<h2>你有如下模板</h2>
<%= error_messages_for 'user' %>
<%= form_tag :action => 'update' %>
<!--[form:user]-->
<table width="100%"   cellspacing="4" cellpadding="4" border="0" align="center" bgcolor="#f0f0f0">
<tbody>
<tr BGCOLOR=#FFCC33>
    <td width="5%" >Action</td> 
    <td width="15%" >Name</td>
    <td width="15%" >Author</td> 
    <td>preview</td>   
</tr>
共有:<%=@theme_cache.size %>个模板<br/>

<% for theme in @theme_cache  %>
<% theme_name = File.basename(theme)%> 

  <tr>
  <td><%=radio_button_tag("theme", theme_name, checked = @app_theme.value.to_s == theme_name.to_s , options = {})%></td>
  <td><%= link_to File.basename(theme),{},{:title=>File.new("#{theme}/about.theme").readlines }%></td>
  <td><%= File.new("#{theme}/author.theme").readlines%></td>
  <td><img src=<%="../../themes/#{File.basename(theme)}/preview.png" %> alt="Icon" height="300px" width="400px" /></td>
 </tr>
<% end %>
</tbody>
</table>
<!--[end form:user]-->
<%= submit_tag 'Select!' %>



